/**
 * 
 */
package ltu.m7011e.server.service;

import ltu.m7011e.server.response.link.GetLinksAction;
import ltu.m7011e.server.response.link.LinkResponse;
import ltu.m7011e.shared.model.Link;


/**
 * @author robinelmouahidine
 *
 */
public interface ILinkService {

	/**
	 * 
	 * @return
	 */
	public GetLinksAction loadNewestLinks(int numberOfRecords, int firstResult);
	/**
	 * 
	 * @return
	 */
	
	public GetLinksAction loadTopLinks(int numberOfRecords, int firstResult);
	/**
	 * 
	 * @return
	 */
	public GetLinksAction loadNewestLinksByCat(int numberOfRecords, int firstResult, String cat);
	
	/**
	 * 
	 * @param theLink
	 * @param linkAuthor
	 * @param linkCat
	 */
	public boolean doPost(LinkResponse newLink);
	
	public int addLikeTo(Integer linkId);

}
